package com.example.light.system.service.impl;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.light.system.common.Result;
import com.example.light.system.entity.loginLog;
import com.example.light.system.vo.insertLoginLog;

import javax.servlet.http.HttpServletRequest;
import java.net.UnknownHostException;

public interface ILoginLogService extends IService<loginLog> {
    // 测试用例
    Result<loginLog> searchLoginFile(int id);

    // 新增登录信息
    Result<loginLog> insertLoginLog(insertLoginLog insertLoginLog) throws UnknownHostException;

    // 获取客户端ip
    public String getClientIpAddress(HttpServletRequest request);
}
